package com.azure.bigstore.repository;

import com.azure.bigstore.entity.Admin;
import com.azure.bigstore.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by liuhuaibin on 2018/1/23.
 */
public interface AdminRepository extends JpaRepository<Admin,Long> {
    public Admin findByUsername(String username);
    public Admin findByUsernameAndPassword(String username, String password);
}
